|
|
@@ -20,15 +20,15 @@ public class SessionInteractor {
|
20
|
20
|
private long maxId = 0;
|
21
|
21
|
private boolean isWorking;
|
22
|
22
|
private boolean isLastQueryReturned = true;
|
|
23
|
+
|
23
|
24
|
private static final String TAG = "SessionInteractor";
|
24
|
25
|
|
25
|
|
- public SessionInteractor(SessionBean sessionBean, SessionListener listener) {
|
|
26
|
+ public SessionInteractor(SessionBean sessionBean, SessionListener listener) {
|
26
|
27
|
this.listener = listener;
|
27
|
28
|
this.sessionBean = sessionBean;
|
28
|
29
|
}
|
29
|
30
|
|
30
|
31
|
public interface SessionListener {
|
31
|
|
-
|
32
|
32
|
void onSessionStartSuccess(String session);
|
33
|
33
|
void onSessionStartError(String session);
|
34
|
34
|
void onSessionPhotoCaptured(PhotoBean bean);
|
|
|
@@ -81,17 +81,7 @@ public class SessionInteractor {
|
81
|
81
|
long milisec = System.currentTimeMillis();
|
82
|
82
|
bean.photoName = milisec+".jpg";
|
83
|
83
|
bean.photoId = milisec;
|
84
|
|
- if(milisec%5==0){
|
85
|
|
- bean.photoPath = "http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1408/11/c0/37303155_1407746429945_800x600.jpg";
|
86
|
|
- }else if(milisec%5==1){
|
87
|
|
- bean.photoPath ="http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1408/07/c0/37179063_1407421362265_800x600.jpg";
|
88
|
|
- }else if(milisec%5==2){
|
89
|
|
- bean.photoPath ="http://h.hiphotos.baidu.com/zhidao/pic/item/6d81800a19d8bc3ed69473cb848ba61ea8d34516.jpg";
|
90
|
|
- }else if(milisec%5==3){
|
91
|
|
- bean.photoPath ="http://img.boqiicdn.com/Data/BK/A/1607/25/imagick97881469425045_y.jpg";
|
92
|
|
- }else{
|
93
|
|
- bean.photoPath = "http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1408/11/c0/37303160_1407746433139_800x600.jpg";
|
94
|
|
- }
|
|
84
|
+
|
95
|
85
|
bean.captureTime = bean.photoId;
|
96
|
86
|
bean.isRawPhoto = false;
|
97
|
87
|
bean.uploadStatus = PhotoBean.UploadStatus.STATUS_NO_BEGIN;
|
|
|
@@ -125,5 +115,4 @@ public class SessionInteractor {
|
125
|
115
|
LogHelper.d(TAG,"deletePhoto execute "+photoBean);
|
126
|
116
|
}
|
127
|
117
|
|
128
|
|
-
|
129
|
118
|
}
|